package com.example.student.mapper;

import com.example.student.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 34082
 */
@Mapper
public interface LoginMapper {

    /**
     * 查找管理员表里的信息与前端传过来的信息是否匹配
     * @param username;
     * @param password;
     * @return Admin
     */
    @Select("select * from admin where username=#{username} and password=#{password}")
    Admin login(String username, String password);
}
